package org.cboard.controller;

import java.util.List;

import org.cboard.pojo.DashboardMap;
import org.cboard.services.MapInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by xiang on 2017/2/10.
 */
@Controller
@RequestMapping("/map")
public class MapInfoController {

    @Autowired
    private MapInfoService mapInfoService;

    /**
     * 获取地图信息
     * @return
     */

    @RequestMapping(value = "/getChildMapList")
    @ResponseBody
    public List<DashboardMap> getMapList(@RequestParam(name = "req_id") String req_id){
        List<DashboardMap> list = mapInfoService.getChildMapList(req_id);
        return list;
    }
}
